<?php
$moduleName   = $invokeParams['moduleName'];
$prefixName   = $invokeParams['moduleName'].$invokeParams['attachName'];
$formDialogId = WacModuleHelper::getFormDialogId($invokeParams['moduleName'], $invokeParams['attachName']);
$formId       = WacModuleHelper::getFormId($invokeParams['moduleName'], $invokeParams['attachName']);

echo "<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"/css/backend/{$invokeParams['moduleName']}/".lcfirst($invokeParams['attachName'])."/".WacControlTableType::$moduleForm.".css\" />\n";
echo "<script type=\"text/javascript\" src=\"/js/backend/{$invokeParams['moduleName']}/".lcfirst($invokeParams['attachName'])."/".WacControlTableType::$moduleForm.".js\"></script>\n";
echo "<div id=\"".$formDialogId."\" class=\"ui-widget\" style=\"display: none\" >\n\n";
?>
<!-- form, begin-->
<form action="#" name="<?php echo $formId;?>" id="<?php echo $formId;?>" method="post" class="wacFormA">
    <div class="wacFormFirstCol">
        <h3>
        <?php
        echo $invokeParams['caption'];
        ?>
        </h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemLeft ">编号</div>
                <div class="wacFormItemRight">
                    <input name="code" id="<?php echo $prefixName; ?>_code" type="text" class="validate[required,custom[noSpecialCaracters]] wacFormText DataTD ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">出仓单号</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $prefixName; ?>_dispatch_order_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">目的地</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $prefixName; ?>_target_id"></div>
               </div>
               <div class="wacFormClear"></div>
            </div>
            
    </div>
</div>
    <div class="wacFormSecondCol">
        <h3>&nbsp;</h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemLeft">QC日期</div>
                <div class="wacFormItemRight">
                     <input name="qc_date" id="<?php echo $prefixName; ?>_qc_date" type="text" class="validate[required,custom[date]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">出货日期</div>
                <div class="wacFormItemRight">
                    <input name="dispatch_date" id="<?php echo $prefixName; ?>_dispatch_date" type="text" class="validate[required,custom[date]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">返货日期</div>
                <div class="wacFormItemRight">
                    <input name="goods_return_date" id="<?php echo $prefixName; ?>_goods_return_date" type="text" class="validate[required,custom[date]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">备注</div>
                <div class="wacFormItemRight">
                     <textarea name="memo" id="<?php echo $prefixName; ?>_memo" class="ui-widget-content ui-corner-all" cols="40" rows="4"></textarea>
                </div>
                <div class="wacFormClear"></div>
            </div>
        </div>

    </div>
    <div class="wacFormClear"></div>
    <div class="wacFormBottom" align="center">
        Tips: 按"Ctrl"多选货项, 然后点击"->"把与出货单相关联的货项加到右侧QC区<span id="<?php echo $prefixName; ?>_selectStockGoods"></span>
        <hr class="wacFormRuler" style="width:1080px; float:inherit;" />

        <FIELDSET class="<?php echo $prefixName; ?>GoodsField1">
            <LEGEND ACCESSKEY=O>物料列表</LEGEND>
            <div class="wacFormGoodsCol" id="<?php echo $prefixName; ?>_stockGoodsZone">
                <ol id="<?php echo $prefixName; ?>_stockGoodsList">
                </ol>

                <div id="<?php echo $prefixName; ?>_stockGoodsListPageBtns" class="fg-buttonset fg-buttonset-single" style="font-size: 10px; margin-left:60px; margin-top:5px;">
                        <input type="button" id="<?php echo $prefixName; ?>_btnPrev" class="fg-button ui-state-default ui-priority-primary ui-corner-left" style="" value="上页">
                        <input type="button" id="<?php echo $prefixName; ?>_btnNext" class="fg-button ui-state-default ui-priority-primary ui-corner-right" style="" value="下页">
                </div>


            </div>
        </FIELDSET>
        <a id="<?php echo $prefixName; ?>_btnTransfer" class="fg-button ui-state-default fg-button-icon-center ui-corner-all">
        <span class="ui-icon ui-icon-arrowthick-1-e"></span>
        </a>
        <FIELDSET class="<?php echo $prefixName; ?>GoodsField2">
            <LEGEND ACCESSKEY=C>QC列表</LEGEND>
            <div class="wacFormGoodsCol" id="<?php echo $prefixName; ?>_targetGoodsZone">
                <ol id="<?php echo $prefixName; ?>_targetGoodsList">
                </ol>
            </div>
        </FIELDSET>

   <div class="wacFormClear"></div>
   <P></P>
      <input name="btnSubmit" id="<?php echo $prefixName; ?>_btnSubmit" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="提交" />
      &nbsp;&nbsp;
      <input name="btnClose" id="<?php echo $prefixName; ?>_btnClose" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="关闭" />
    </div>

    <input type="hidden" name="id" id="<?php echo $prefixName; ?>_id" value="0">
</form>
<!-- form, end-->
<?php echo "</div>"; ?>